package com.atguigu.mapper;

import com.atguigu.pojo.Emp;

import java.util.List;

/**
 * @Author: liuaojun
 * @CreateTime: 2025-02-05
 * @Description:
 * @Version: 1.0
 */
public interface UserMapper {
    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:03
    * @Description:新增员工
    */
    void insertUser(Emp emp);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:03
    * @Description:修改员工
    */
    void updateUser(Emp emp);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:10
    * @Description:删除
    */
    void deleteUser(Integer id);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:14
    * @Description:根据Id查询
    */
    Emp selectUser(Integer id);

    /**
    * @Author:liuaojun
    * @Date:2025-02-05 19:23
    * @Description:查询所有
    */
    List<Emp> selectAllUser();
}
